<?php

require_once 'db.php';

class work extends DB {

    public function works1() {
        $this->getConnection();
        $query = "SELECT * FROM works LIMIT 0,50";
        $work = $this->query($query);
        return $work;
    }

    public function select($query) {
        $works = $this->query($query);
        return $works;
    }
}

